import axios from "../utils/index";

// 获取栏目信息
export const getCategoryAPI = () => {
  return axios({
    method: "get",
    url: "/category",
  });
};

// 添加栏目信息
export const addCategoryAPI = (data) => {
  return axios({
    method: "post",
    url: "/category",
    data,
  });
};
